package com.yzb.lee.myenum;

public class Herb
{
    public enum Type
    {
        ANNUAL, PERENNIAL, BIENNIAL
    }
    
    private final String name;
    private final Type type;
    
    Herb(String name, Type type)
    {
        this.name = name;
        this.type = type;
    }

    @Override
    public String toString()
    {
        return name;
    }
}
